-- GENERATED SPELL FOR [Rabid Shadowhide Gnoll] --


function spell0_434(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_434', 30000, 1)
end

function spell1_434(pUnit, Event) --@Rabies,n/a--
pUnit:FullCastSpellOnTarget(3150,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_434', 0, 1)
end

function Sorts_434(pUnit, Event)
local choix_sorts_434 = math.random(0, 1)
if choix_sorts_434 == 0 then
pUnit:RegisterEvent('spell0_434', 1, 1)
end
if choix_sorts_434 == 1 then
pUnit:RegisterEvent('spell1_434', 1, 1)
end
end

function mob434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_434', math.random(1500, 3000), 1)
end

function mob434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(434, 1, 'mob434_Action')
RegisterUnitEvent(434, 2, 'mob434_Leave')
RegisterUnitEvent(434, 3, 'mob434_Kill')
RegisterUnitEvent(434, 4, 'mob434_Die')
